package com.design.factorymethod.role;

/**
 * @author xiemiao
 * @description 客户端
 * @date 2023/08/08
 */
public class Client {
    public static void main(String[] args) {
        RoleFactory playerFactory = new PlayerFactory();
        Role player = playerFactory.createRole();
        player.play();

        RoleFactory enemyFactory = new EnemyFactory();
        Role enemy = enemyFactory.createRole();
        enemy.play();
    }
}
